package org.example.sb_api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@Data
@TableName("weather")
public class Weather {
    @TableId(type = IdType.AUTO)
    private Long id;
    private String weather;
    private Integer maxTemperature;
    private Integer minTemperature;
    private Integer humidity;
    private Integer windSpeed;
    private Long cityId;
    private Integer currentTemperature;
    private String airQuality;
    private Integer visibility;
    private String weatherIcon;
    private String cityName;
    
    @TableField(exist = false)
    private WeatherForecast weatherForecastList;
} 